<!--%import("../../tpl/filter/modify_ad.xml")-->
<!--#include("header.include.html")-->

<div class="AdRegister">
	<form method="post" onsubmit="return procFilter(this, modify_ad)">
	<input type="hidden" name="document_srl" value="{$oAd->document_srl}" />
	<dl>
		<dd>{$lang->ad_content} : <input type="text" name="ad_content" value="{$oAd->getAdContentText()}" class="inputTypeText w400" /></dd>
		{@
			$ad_time = $oAd->get('end_date') - $oAd->get('start_date');
		}
		<!--@if($ad_time_range)-->
		<dd>
			{$lang->ad_time} :
			<select name="ad_time" class="itemPicker" disabled="disabeld">
				<!--@if($grant->unlimited_ad)--><option value="-1"<!--@if($oAd->get('end_date') == -1)--> selected="selected"<!--@end-->>{$lang->unlimited}</option><!--@end-->
				<!--@if(is_array($ad_time_range) && count($ad_time_range))-->
				<!--@foreach($ad_time_range as $key => $val)-->
				<option value="{$val['time']}"<!--@if($ad_time == $val['time'])--> selected="selected"<!--@end-->>{$val['title']}</option>
				<!--@endforeach-->
				<!--@else-->
				<!--@end-->
			</select>
		</dd>
		<!--@end-->
		<!--@if($grant->highlight_ad && $module_info->use_option != '')-->
		{@ $styleList = $oAd->getStyleList()}
		<dd class="AdOption">
			{$lang->ad_option} : 
			<!--@if($grant->manager)--><input type="checkbox" name="is_notice" id="is_notice" value="Y"<!--@if($oAd->isNotice())--> checked="checked"<!--@end--> disabled="disabled" /><label for="is_notice"><strong style="color:#f42126">{$lang->notice}</strong></label> <!--@end-->
			<input type="checkbox" name="used_style" id="use_bold" value="bold"<!--@if($oAd->isBold())--> checked="checked"<!--@end--> disabled="disabled" /><label for="use_bold"><strong>{$lang->bold}</strong></label> 
			<input type="checkbox" name="used_style" id="use_underline" value="underline"<!--@if($oAd->isUnderline())--> checked="checked"<!--@end--> disabled="disabled" /><label for="use_underline"><u>{$lang->underline}</u></label> 
			<input type="checkbox" name="used_style" id="use_italic" value="italic"<!--@if($oAd->isItalic())--> checked="checked"<!--@end--> disabled="disabled" /><label for="use_italic"><i>{$lang->italic}</i></label>
		</dd>
		<!--@if($module_info->use_color == 'Y')-->
		<dd>
		{@
			$AdColorRange = explode(',',$module_info->ad_color_range);
			$textColor = $oAd->getTextColor()
		}
			{$lang->text_color} :
			<select name="ad_color" class="colorPicker" disabled="disabled">
				<!--@foreach($AdColorRange as $key => $val)-->
				<option value="{$val}" style="color:{$val};background-color:{$val};"<!--@if($textColor && $val == $textColor)--> selected="selected"<!--@end-->>{$val}</option>
				<!--@endforeach-->
			</select>
		</dd>
		<!--@end-->
		<!--@if($module_info->use_bgcolor == 'Y')-->
		<dd>
		{@
			$AdBgColorRange = explode(',',$module_info->ad_bgcolor_range);
			$bgColor = $oAd->getBgColor();
		}
			{$lang->bg_color} :
			<select name="ad_bgcolor" class="colorPicker">
				<!--@foreach($AdBgColorRange as $key => $val)-->
				<option value="{$val}" style="color:{$val};background-color:{$val};"<!--@if($bgColor && $val == $bgColor)--> selected="selected"<!--@end-->>{$val}</option>
				<!--@endforeach-->
			</select>
		</dd>
		<!--@end-->
		<!--@end-->
		<!--@if($grant->url_link)-->
		<dd>
			{$lang->url} : <input type="text" name="url" value="" class="inputTypeText w300" />
			<select name="url_target" class="itemPicker">
				<option value="_blank">{$lang->new_window}</option>
				<option value="_self">{$lang->current_window}</option>
			</select>
		</dd>
		<!--@end-->
		<dd><span class="button black"><input type="submit" value="{$lang->ad_modify}" /></span></dd>
	</dl>
	</form>
</div>

<!--#include("footer.include.html")-->